package com.hoshiicloud.goods.param.sku;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.io.Serializable;

/**
* <p>
* 修改商品sku分配参数
* </p>
*
* @author zhangshuhu
* @since 2019-06-04
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value="修改商品sku分配", description="修改商品sku分配")
public class ProductManageUpdateParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID",required =true)
    private Long id;

    @ApiModelProperty(value = "租户ID")
    private Long companyId;

    @ApiModelProperty(value = "平台ID")
    private Long platformId;

    @ApiModelProperty(value = "店铺ID")
    private String storeId;

    @ApiModelProperty(value = "来源 1-租户  2-平台 3-店铺")
    private Integer source;

    @ApiModelProperty(value = "SKUID")
    private Long skuId;

    @ApiModelProperty(value = "SKUNO")
    private String skuNo;

    @ApiModelProperty(value = "商品名称")
    private String skuName;

    @ApiModelProperty(value = "规格")
    private String spec;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "分配数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "冻结数量")
    private BigDecimal freezes;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "修改人")
    private String updatedBy;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

    @ApiModelProperty(value = "销售数量")
    private BigDecimal salesQuantity;


    private Long baseSkuId;

}
